package com.nf.action;

import com.nf.entity.Test;
import com.nf.service.TestService;
import com.nf.service.TestServiceImpl;

import java.util.ArrayList;
import java.util.List;

public class TestAction {
    private List<Test> testList = new ArrayList<Test>();

    private TestService ts = new TestServiceImpl();
    public List<Test> getTestList() {
        return testList;
    }

    public void setTestList(List<Test> testList) {
        this.testList = testList;
    }

    public String execute(){
        testList = ts.getAll();
        return "success";
    }
}
